/*
 * set_angles.cpp
 *
 *  Created on: 08.04.2012
 *      Author: Roma Jam
 */

#include "stm32f10x.h"
#include "set_angles.h"

bool set_angles_t::azimuth_set(uint16_t *Azimuth_var, const uint16_t Azimuth_measure) {
    if ((&Azimuth_var - Azimuth_measure) <= 0) {
        *Azimuth_var = Azimuth_measure;
        return true;
    } else return false;
}

bool set_angles_t::elevation_set(uint16_t *Elevation_var, const uint16_t Elevation_measure) {
    if ((&Elevation_var - Elevation_measure) <= 0) {
        *Elevation_var = Elevation_measure;
        return true;
    } else return false;
}
